import request from '@/utils/request'

export function pageVoices(params) {
  return request({
    url: '/admin/voices/page',
    method: 'PUT',
    data: params,
  });
}



// 查询已创建的所有音色
export function listCreatedVoices(data) {
  return request({
    url: '/admin/voices/listvoice',
    method: 'POST',
    data
  })
}


// 更新音色
export function updateVoice(data) {
  return request({
    url: '/admin/voices/updatevoice',
    method: 'post',
    data
  })
}


// 获取
export function queryvoice(voiceId) {
  return request({
    url: `/admin/voices/queryvoice/${voiceId}`,
    method: 'POST',
    data: voiceId
  })
}



// 删除
export function deleteActivity(id) {
  return request({
    url: `/admin/activity/remove/${id}`,
    method: 'delete'
  })
}